#include "crc16.h"
#include <stdio.h>

uint16_t crc16_checksum(uint8_t *buff, uint16_t size)
{
    uint16_t sum = 0;
    for (uint16_t i = 0; i < size; i++)
    {
        sum += buff[i];
    }
    return sum;
}

uint8_t crc8_checksum(uint8_t *buff, uint16_t size)
{
    uint8_t sum = 0;
    for (uint16_t i = 0; i < size; i++)
    {
        sum += buff[i];
    }
    return sum;
}

